package com.xly.webclick.adapter;

import android.databinding.BindingAdapter;
import android.support.v7.widget.RecyclerView;

/**
 * Created by amos on 2018/5/21.
 */

public class RecyclerViewBindingAdapter {


    @BindingAdapter({"recyCurrentPos"})
    public static void scrolloToPosition(RecyclerView view, int pos) {
        if (pos > 0) {
            view.smoothScrollToPosition(pos);
        }
    }
}
